page {
  //height: 100vh;
  background-color: #efefef !important;

  // 本页面中的每个块级元素保持与前面一个间隔16rpx
  display: flex;
  flex-direction: column;
  > view {
    &:nth-child(n+2){
      margin-top: 16rpx;
    }
  }
}

.swiper {
  border-radius: 10rpx;
  overflow: hidden;

  swiper {
    height: 360rpx;
    background-color: skyblue;
    swiper-item {
      image {
        height: 100%;
        width: 100%;
        border-radius: 10rpx;
      }
      &:first-child {
        background-color: lightsalmon;
      }
      &:last-child {
        background-color: lightseagreen;
      }
    }
  }
}

.info {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  padding: 20rpx 16rpx;
  border-radius: 10rpx;
  font-size: 24rpx;
  .iconfont {
    font-size: 24rpx;
    margin-right: 7rpx;
  }
}

.good-nav {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  padding: 20rpx 16rpx;
  border-radius: 10rpx;

  view {
    navigator {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    image {
      width: 80rpx;
      height: 80rpx;
    }
    text {
      font-size: 24rpx;
      margin-top: 12rpx;
    }
  }
}

.scroll-x {
    width: 100%;
    white-space: nowrap;
    //background-color: skyblue;

    view {
      display: inline-block;
      width: 300rpx;
      height: 80rpx;

      &:last-child {
        //background-color: lightcoral;
      }

      &:first-child {
        //background-color: lightseagreen;
      }
    }
}

.good-hot {
  background-color: #fff;
  padding: 16rpx;
  border-radius: 10rpx;

  .scroll-x {
    width: 100%;
    white-space: nowrap;
    view {
      display: inline-block;
      width: 320rpx;
      height: 420rpx;
      margin-right: 16rpx;

      .good-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text {
          &:nth-of-type(1){
            font-weight: bold;
            font-size: 26rpx;
          }
        }
      }
      image {
        width: 100%;
        height: 320rpx;
      }

      &:last-child {
        margin-right: 0;
      }
    }
  }
}
